﻿using System.IO;
using System.Linq;

namespace Haimen;

internal class EntryArgParser {

  public EntryArgResult Parse(string[] args) {
    if (args.Length == 0) {
      //return new(@"E:\work_etc\nina\2023haimen2\workshop_z\bin_history\v240129\app", "功能_1", true);
      return new(Path.GetFullPath("."), "功能_2", false);
    }

    string func = args[0];
    bool isProd = args.Contains("prod");
    return new(Path.GetFullPath("."), func, isProd);
  }
}

internal record EntryArgResult(string WorkingDir, string Func, bool IsProd);
